package mwt.xml.waxdbforms.business.impl;

import mwt.xml.waxdbforms.business.SecurityService;
import mwt.xml.xdbforms.dbms.XDBFManager;

public class SecurityServiceImpl implements SecurityService {
    private XDBFManager xdbfm = null;

    public SecurityServiceImpl(XDBFManager xdbfm) {
        this.xdbfm = xdbfm;
    }

    public boolean login(String username, String password) {
        return xdbfm.connect(username, password);
    }

    public void logout() {
        xdbfm.disconnect();
    }

}
